#define HMC5983_ADDRESS 0x1E
#define X_AXIS 0
#define Y_AXIS 1
#define Z_AXIS 2

void HMC5983_init();
void HMC5983_read();
BOOL HMC5983_dataReady();
short HMC5983_getRaw(int axis);